package top.xierongsheng.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.xierongsheng.user.dao.MemberMapper;
import top.xierongsheng.user.model.Member;
import top.xierongsheng.user.service.IMemberService;

/**
 * 会员表 服务实现类
 *
 * @auther 谢荣生
 * @datetime 2020/10/16 17:23
 */
@Service
public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> implements IMemberService {

    @Autowired(required = false)
    private MemberMapper memberMapper;

    /**
     * 通过openid获取会员ID
     *
     * @param openId
     * @return
     */
    @Override
    public String getOneByOpenid(String openId) {
        return memberMapper.getOneByOpenid(openId);
    }
}
